namespace DesignPattern.Behavioral.Interpreter
{
    public class TerminalExpress : IExpress
    {
        private string _data;

        public TerminalExpress(string data)
        {
            _data = data;
        }

        public bool Interpreter(string context)
        {
            return context.Contains(_data);
        }
    }
}